using UnityEngine;

public class CopyLabelText : MonoBehaviour
{
	public UILabel baseLabel;

	private UILabel selfLabel;

	public bool autoCopy = true;

	private void Awake()
	{
		selfLabel = base.gameObject.GetComponent<UILabel>();
		selfLabel.text = baseLabel.text;
	}

	public void Update()
	{
		if (autoCopy)
		{
			selfLabel.text = baseLabel.text;
		}
	}
}
